#!/bin/bash
#txtfiles="/host/diploma/data/jds/test/*.txt"
txtfiles="/host/diploma/data/jds/input/*.txt"

for f in $txtfiles
do
	fbname=`basename "$f" .txt`
	echo $fbname
	if [ ! -f /host/diploma/data/jds/processed/"$fbname".conllx ] 
	then
		cat "$f" | treex  -Lcs  Read::Text W2A::CS::Segment use_lines=1 W2A::CS::Tokenize W2A::CS::TagMorce W2A::CS::ParseMSTAdapted Write::CoNLLX to=/host/diploma/data/jds/processed/"$fbname".conllx
	fi
done
